import {Base} from "../../utils/base.js";
class Model extends Base{
  constructor(){
    super()
  }

  // 获取下级用户
  getSubUser(callback){
    this.request({
      url: '/get_user_subordinate',
      success: function (res) {
        callback(res);
      }
    });
  } 

  editUserName(data,success,fail){
    this.request({
      url:'/edit_username',
      type:'POST',
      data,
      success:(res)=>{
        success&&success(res)
      },
      fail:(res)=>{
        fail&&fail(res)
      }
    })
  }
}

export{Model}